home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / gfx / board / Cybermagic.lha / INSTALL < prev    next >
Text File  |  1999-01-20  |  5KB  |  205 lines

  1. ;************************************************************
  2. ;**  CYBERMAGIC Installer-Script with InstallerFX support  **
  3. ;**  ©1998-99 by Markus Killian                            **
  4. ;**  Last changes on 20.01.99                              **
  5. ;************************************************************
  6.  
  7. (if (= x 1) (welcome))
  8.  (onerror (CLEANUP))
  9.  
  10. (procedure CLEANUP
  11.  (delete "T:Logopic")
  12.  (delete "T:Logopic.prefs")
  13. )
  14.  
  15. ( set OS_VER ( / ( getversion ) 65536 ) )
  16.  
  17. ( set #yeskey "Yes" )
  18. ( set #nokey  "No" )
  19. ( set #maindrawer "Please select a device or a drawer for your\ninstallation of Cybermagic.\nA drawer will be created automatically." )
  20. ( set #version "Which version should be installed ?\n" )
  21. ( set #active "Do you want to copy Cybermagic in the WBStartup drawer ?\n" )
  22. ( set #installwizard "Install Wizard.library.\n" )
  23. ( set #assign "\nMake assign of Cybermagic: to S:user-startup.\n" )
  24. ( set #falsekick "OS 3.x is required.\n" )
  25. ( set #end "\nThis is release BETA 0.3.2 of Cybermagic.\nRead the docs for more information.\nBugreport to m.killian@xpoint.at\n\n---VIVA AMIGA ---\n" );
  26.  
  27. ( if ( = @language "deutsch" )
  28.  (
  29.   ( set #yeskey "Ja" )
  30.   ( set #nokey  "Nein" )
  31.   ( set #maindrawer "In welches Verzeichnis soll Cybermagic installiert werden ? Eine Schublade dieses Namens wird angelegt.\n" )
  32.   ( set #version "Welche Version soll installiert werden ?\n" )
  33.   ( set #active "Soll Cybermagic nach WBStartup kopiert werden ?\n" )
  34.   ( set #installwizard "Installiere Wizard.library.\n" )
  35.   ( set #assign "\nErzeuge Zuweisung Cybermagic: in S:user-startup.\n" )
  36.   ( set #falsekick "OS 3.x wird benötigt.\n" )
  37.   ( set #end "\nDies ist die Version BETA 0.3.2 von Cybermagic.\nLies die Anleitung für mehr Informationen.\nFehlerreport an m.killian@xpoint.at\n\n--- VIVA AMIGA ---\n" )
  38.  
  39.  )
  40. )
  41.  
  42. ( if( < OS_VER 39 )
  43.  ( abort #falsekick ) )
  44.  
  45. ( set cpu ( database "cpu" ) )
  46. ( if( or ( = cpu 68020 ) ( = cpu 68030 ) ) ( set #cpu 0 ) )
  47. ( if( = cpu 68040 ) ( set #cpu 1 ) )
  48. ( if( > ( exists ( "libs:68060.library" ) ) 0 ) ( set #cpu 1 ) )
  49. ; /* Für die Zukunft */
  50. ;( if( > ( exists ( "libs:powerpc.library" ) ) 0 ) ( set #cpu 2 ) )
  51.  
  52.  
  53. (copyfiles
  54.         (source "InstallerFX/CybermagicLogo")
  55.         (dest "t:")
  56.         (newname "Logopic")
  57. )
  58. (copyfiles
  59.         (source "InstallerFX/CybermagicLogo.prefs")
  60.         (dest "t:")
  61.         (newname "Logopic.prefs")
  62. )
  63.  
  64. (run "run InstallerFX/InstallerFX t:logopic")
  65.  
  66. ;(set @user-level 2)
  67.  
  68. ( user 1 )
  69. ( welcome )
  70.  
  71. ( set progdir1
  72.  ( askdir
  73.   ( prompt #maindrawer )
  74.   ( help @askdir-help )
  75.   ( default @default-dest )
  76.  )
  77. )
  78.  
  79. ( set CpuVersion
  80.  ( askchoice
  81.   ( prompt #version )
  82.   ( help @askoptions-help )
  83.   ( choices
  84.            "020/030"
  85.            "040/060"
  86.   )
  87.   ( default #cpu )
  88.  )
  89. )
  90.  
  91. ( Set InstallWhere
  92.  ( askchoice
  93.   ( prompt #active )
  94.   ( help @askoptions-help )
  95.   ( choices
  96.            #yeskey
  97.            #nokey
  98.   )
  99.   ( default #yeskey )
  100.  )
  101. )
  102.  
  103. ; /* Installiere Library */
  104.  
  105. ( ( copylib
  106.    ( prompt #installwizard )
  107.    ( help @copylib-help )
  108.    ( source "libs/wizard.library" )
  109.    ( dest "Libs:" )
  110.    ( confirm )
  111. ) )
  112.  
  113. ; /* Erzeuge Programmschublade */
  114.  
  115. ( ( makedir ( tackon progdir1 "Cybermagic" ) )
  116.   ( copyfiles ( source "Icons/Cybermagic.info" )
  117.   ( dest progdir1 ) )
  118.   ( set progdir ( tackon progdir1 "Cybermagic" ) )
  119. )
  120.  
  121. ; /* Installiere Blankermodule */
  122.  
  123. ( makedir ( tackon progdir "Blanker" ) )
  124.  
  125. ( if( = CpuVersion 0 )
  126.     ( copyfiles ( source "Blanker020" )
  127.     ( dest ( tackon progdir "Blanker" ) )
  128.     ( all ) )
  129. )
  130.  
  131. ( if( = CpuVersion 1 )
  132.     ( copyfiles ( source "Blanker040" )
  133.     ( dest ( tackon progdir "Blanker" ) )
  134.     ( all ) )
  135. )
  136.  
  137. ( ( copyfiles ( source "Prefs/english" )
  138.   ( dest ( tackon progdir "Blanker" ) )
  139.   ( all ) )
  140. )
  141.  
  142. ( if ( = @language "deutsch" )
  143.      ( copyfiles ( source "Prefs/deutsch" )
  144.      ( dest ( tackon progdir "Blanker" ) )
  145.      ( all ) )
  146. )
  147.  
  148. ; /* Installiere Soundmodule */
  149.  
  150. ( makedir ( tackon progdir "Sounds" ) )
  151.  
  152.  
  153. ; /* Installiere Rexx Scripts */
  154.  
  155. ( ( copyfiles ( source "Rexx" )
  156.   ( dest "REXX:" )
  157.   ( all ) )
  158. )
  159.  
  160. ; /* Installiere Cybermagic */
  161.  
  162. ( ( copyfiles ( source "Cybermagic.config" )
  163.   ( dest progdir ) )
  164.   ( copyfiles ( source "english/Cybermagic.guide" )
  165.   ( dest progdir ) )
  166.   ( if ( = @language "deutsch" )
  167.   (
  168.    ( copyfiles ( source "deutsch/Cybermagic.guide" )
  169.    ( dest progdir ) )
  170.   ) )
  171.   ( copyfiles ( source "Icons/Cybermagic.guide.info" )
  172.   ( dest progdir ) )
  173. )
  174.  
  175. ( ( if( = InstallWhere 0 )
  176.       ( ( copyfiles ( source "CM" )
  177.         ( dest "SYS:WBStartup" ) )
  178.         ( copyfiles ( source "Icons/CM.info" )
  179.         ( dest "SYS:WBStartup" ) ) )
  180.   )
  181.   ( if( = InstallWhere 1 )
  182.       ( ( copyfiles ( source "CM" )
  183.         ( dest progdir ) )
  184.         ( copyfiles ( source "Icons/CM.info" )
  185.         ( dest progdir ) ) )
  186.   )
  187. )
  188.  
  189. ; /* Assign */
  190.  
  191. ( if( exists "SYS:S/User-Startup" )
  192.     ( ( startup "CYBERMAGIC"
  193.       ( prompt #assign )
  194.       ( help @startup-help )
  195.       ( command ( "Assign %s: %s" "CYBERMAGIC" progdir ) )
  196.     )
  197.    )
  198. )
  199. ( makeassign "CYBERMAGIC" progdir )
  200. ( set @default-dest progdir )
  201.  
  202. (CLEANUP)
  203. (exit 0)
  204.  
  205.